import request from '@/config/axios'

export interface ActivityEnrollVerificateVO {
  id: number
  enrollId: number
  userId: number
  activityId: number
  activityProductsId: number
  price: number
  verificationCode: string
  status: boolean
  type: boolean
  verificationTime: Date
}

// 查询相亲报名（活动）核销列表
export const getActivityEnrollVerificatePage = async (params) => {
  return await request.get({ url: `/activity/enroll-verificate/page`, params })
}

// 查询相亲报名（活动）核销列表
export const getActivityEnrollVerificateList = async (ids) => {
  return await request.get({ url: `/activity/enroll-verificate/list`, ids })
}

// 查询相亲报名（活动）核销详情
export const getActivityEnrollVerificate = async (id: number) => {
  return await request.get({ url: `/activity/enroll-verificate/get?id=` + id })
}

// 新增相亲报名（活动）核销
export const createActivityEnrollVerificate = async (data: ActivityEnrollVerificateVO) => {
  return await request.post({ url: `/activity/enroll-verificate/create`, data })
}

// 修改相亲报名（活动）核销
export const updateActivityEnrollVerificate = async (data: ActivityEnrollVerificateVO) => {
  return await request.put({ url: `/activity/enroll-verificate/update`, data })
}

// 删除相亲报名（活动）核销
export const deleteActivityEnrollVerificate = async (id: number) => {
  return await request.delete({ url: `/activity/enroll-verificate/delete?id=` + id })
}

// 导出相亲报名（活动）核销 Excel
export const exportActivityEnrollVerificate = async (params) => {
  return await request.download({ url: `/activity/enroll-verificate/export-excel`, params })
}
